package com.etc.单例模式.饿汉式;

/**
 * @Author 静静
 * @Description
 * @Date 2021/3/7  15:52
 **/
public class test {

    public static void main(String[] args) {
        Mouse instance = Mouse.getInstance();
        Mouse instance2 = Mouse.getInstance();
        if (instance==instance2){
            System.out.println("你好");
        }
        instance.MouseInfo();
    }
}
